package com.glqiang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glqiang.domain.entity.Permission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * (Permission)表数据库访问层
 *
 * @author glqiang
 * @since 2022-11-21 23:36:15
 */
@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {
    /**
     * 通过用户id获取权限信息
     *
     * @param id 用户id
     * @return 权限信息
     */
    List<String> listPermissionByUserId(Long id);
}

